package ccm.itesm.mx.servicios;

import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.io.Serializable;

public class Dia implements Serializable {

private static final long serialVersionUID = 7526471155622776147L;
	
	private int dia;
	private int hora;
	
	public Dia(int dia, int hora){
		this.dia = dia;
		this.hora = hora;
	}
	
	public int getDia(){
		return dia;
	}
	
	public int getHora(){
		return hora;
	}
	
	public void setDia(int in){
		dia = in;
	}
	
	public void setHora(int in){
		hora = in;
	}
	
	public String toString(){
		return dia+"";
	}
	
	private void readObject(ObjectInputStream aInputStream) throws ClassNotFoundException, IOException {
		//always perform the default de-serialization first
		aInputStream.defaultReadObject();
	}

	private void writeObject(ObjectOutputStream aOutputStream) throws IOException {
		//perform the default serialization for all non-transient, non-static fields
		aOutputStream.defaultWriteObject();
	}
}
